package com.rabbiter.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.rabbiter.entity.Goods;
import com.baomidou.mybatisplus.extension.service.IService;
import com.rabbiter.vo.GoodsVO;
import org.springframework.web.multipart.MultipartFile;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 */
public interface GoodsService extends IService<Goods> {

    IPage pageCC(IPage<Goods> page, Wrapper wrapper);

    void saveAll(Goods goods);

    String updateImage(Integer id, MultipartFile image);

    List<GoodsVO> getGoodsByTypeId(Integer id);
}
